package qqcommon;

import java.io.Serializable;

/**
 * @author DCSGO
 * @version 1.0
 * 客户端和服务端通信时的消息对象
 */
public class Message implements Serializable {
    private static final long serialVersionUID = 1L;

    private String sender;//发送者
    private String receiver;//接收者
    private String sendTime;//发送时间
    private String content;//消息内容
    private String mesType;//消息类型
    private String fileName;//文件名
    private String destFilePath;//接收者存放该文件的路径
    private byte[] fileBytes;//存储文件的字节数组
    private int fileLen;//文件长度-字节

    public void setDestFilePath(String destFilePath) {
        this.destFilePath = destFilePath;
    }

    public String getDestFilePath() {
        return destFilePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public byte[] getFileBytes() {
        return fileBytes;
    }

    public void setFileBytes(byte[] fileBytes) {
        this.fileBytes = fileBytes;
    }

    public int getFileLen() {
        return fileLen;
    }

    public void setFileLen(int fileLen) {
        this.fileLen = fileLen;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMesType() {
        return mesType;
    }

    public void setMesType(String mesType) {
        this.mesType = mesType;
    }

    public Message() {
    }

    public Message(String sender, String receiver, String sendTime, String content, String mesType) {
        this.sender = sender;
        this.receiver = receiver;
        this.sendTime = sendTime;
        this.content = content;
        this.mesType = mesType;
    }
}
